﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SnmpForm.ApBatchConfig
{
    class BatchLoginPasswdTask:BatchTask
    {
        string _username = null;
        string _passwd = null;
        public BatchLoginPasswdTask(FrmApBatchConfig objForm,
            List<BusinessWrapper.Ap> aps, 
            string username, 
            string passwd)
            : base(objForm, aps)
        {
            _username = username;
            _passwd = passwd;
        }

        public override void ApRequestAction(BusinessWrapper.Ap ap)
        {
            ap.ChLoginUserAndPasswd(_username, _passwd);
        }
    }
}
